package com.greensam.pixelengine.pojo.vo.role.request;

import com.greensam.pixelengine.pojo.base.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author Macro_Ray
 * @since 2025/6/19 16:09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "保存用户角色请求参数")
public class UserRoleSaveRequest extends BaseDto {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(title = "用户ID")
    @NotNull(message = "user id is null")
    private Long userId;

    @Schema(title = "角色ID")
    @NotNull(message = "role id is null")
    private Long roleId;
}
